home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 223_01 / ispunct.c < prev    next >
Text File  |  1980-01-01  |  384b  |  9 lines

  1. #define NOCCARGC  /* no argument count passing */
  2. /*
  3. ** return 'true' if c is a punctuation character
  4. ** (all but control and alphanumeric)
  5. */
  6. ispunct(c) int c; {
  7.   return (!isalnum(c) && !iscntrl(c));
  8.   }
  9.